﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace TripleGameWCFService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface ITripleGameService
    {
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "UserId/{Name}")]
        string ReserveNewUserId(string name);


        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Move/{x1}/{y1}/{x2}/{y2}")]
        string MakeMove(string x1, string y1, string x2, string y2);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "GetMatrix/{gameID}")]
        int[] GetMatrix(string gameId);
    }
}
